def sum(num):
    data = 0
    for i in range(1,num+1):
        data = data + i
    return data
print(sum(int(input('请输入最大数'))))